<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div align="right">
    <c:choose>
        <c:when test="${empty USER_INFO}">
            <form action="users" method="post" >
                <input type="hidden" name="type" value="login">
                账号：<input type="text" name="phone" placeholder="请输入手机号">
                密码：<input type="password" name="pass">
                <button>登录</button>
            </form>
        </c:when>
        <c:otherwise>
            <c:choose>
                <c:when test="${empty USER_INFO.photo}">
                    <a href="photo.jsp"><img src="img/1.jpg" width="80" height="80" class="img-thumbnail"></a>
                </c:when>
                <c:otherwise>
                    <a href="photo.jsp"><img src="img/${USER_INFO.photo}.jpg" width="80" height="80" class="img-thumbnail"></a>
                </c:otherwise>
            </c:choose>
            <c:choose>
                <c:when test="${empty MEMBER_INFO}">
                    欢迎${USER_INFO.userName},<a href="users?type=zhu" target="_parent">注销</a>
                    <br/>
                    <a href="users?type=member&userid=${USER_INFO.userId}">注册会员</a>
                </c:when>
                <c:otherwise>
                    尊敬的${MEMBERSHIP_INFO.grade}会员${USER_INFO.userName}欢迎您<br/>
                    <a href="users?type=zhu" target="_parent">注销</a>
                </c:otherwise>
            </c:choose>

        </c:otherwise>
    </c:choose>
</div>
</body>
</html>
